home *** CD-ROM | disk | FTP | other *** search
/ The Games Machine 76 / XENIATGM66.iso / Indiana Jones / Indiana Jones.exe / RESOURCE / PREVIEW.GOB / cog_inf_joh.cog < prev    next >
Text File  |  1999-11-15  |  1KB  |  61 lines

  1. # Jones 3D Cog Script
  2. #
  3. # nub_Jewel.cog
  4. #
  5. # [TL]
  6. #
  7. # (C) 1999 LucasArts Entertainment Co. All Rights Reserved
  8. #
  9. # ========================================================================================
  10. symbols
  11.  
  12. message        startup
  13. message        entered
  14. message        exited
  15.  
  16. thing        player        local
  17. thing        plasma
  18.  
  19. surface        pad         linkid=3
  20. surface     upsurf0     linkid=3
  21. surface     upsurf1     linkid=3
  22. surface     upsurf2     linkid=3
  23. surface     upsurf3        linkid=3
  24.  
  25. end
  26.  
  27. # ========================================================================================
  28. code
  29.  
  30. startup:
  31.  
  32.     player = GetLocalPlayerThing();
  33.  
  34. return;
  35.  
  36. # ........................................................................................
  37. entered:
  38.  
  39.     if ((GetSenderID() == 3) && (GetSourceRef() == player)) 
  40.     {
  41.         //print("Jewel is TRUE...");
  42.         JewelFlyingStatus(1, plasma);
  43.     }
  44.     
  45. return;
  46.  
  47. # ........................................................................................
  48. exited:
  49.  
  50.     if ((GetSenderID() == 3) && (GetSourceRef() == player)) 
  51.     {
  52.         //print("Jewel is FALSE...");
  53.         JewelFlyingStatus(0, plasma);
  54.     }
  55.  
  56. return;
  57.  
  58. # ........................................................................................
  59. end
  60.  
  61.